package com.toby.ioc.value;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @desc:
 * @author: toby
 * @date: 2019/7/20 20:20
 */
@Component
@Data
@ToString
public class Person {

    @Value("${person.firstName}")
    private String firstName;

    @Value("${person.lastName}")
    private String lastName;

    @Value("#{28-8}")
    private Integer age;
}
